<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="../../js/plugins/angular/angular.min.js" type="text/javascript"></script>
</head>
<body>
<div ng-app="hd" ng-controller="ctrl">
    <!-- ng-true-value选中的值为1 -->
    <!-- ng-false-value不选中的值为0 -->
    游戏: <input type="checkbox" ng-model="data.game" ng-true-value="1" ng-false-value="0">
    电影: <input type="checkbox" ng-model="data.video" ng-true-value="1" ng-false-value="0">
    {{data}}
</div>
<script>
    var m = angular.module('hd',[]);
    m.controller('ctrl',['$scope',function ($scope) {
        $scope.data = {game:0,video:0};
    }])
</script>


</body>
</html>